package com.tjetc.dao;

import com.tjetc.domain.News;
import com.tjetc.utils.PageInfo;

import java.sql.SQLException;
import java.util.List;

public interface NewsDao {

   List<News> findBySid(int sid) throws SQLException;

   List<News> listHotNews() throws SQLException;


   int getCount(String content) throws SQLException;

   List<News> list(String content, PageInfo<News> pageInfo) throws SQLException;

    int del(int id) throws SQLException;

    int add(News news) throws SQLException;

    int update(News news) throws SQLException;
}
